import request from '@/utils/request'

// api地址
const api = {
  homeworkList:'api/homework/list',
  homeworkSub: 'api/homework/sub',
  homeworkDetail: 'api/homework/detail',
  homeworkSubmit:'api/homework/submit'
}

// 课程作业
export const homeworkList = (data) => {
  return request.post(api.homeworkList, data)
}

// 作业列表
export const homeworkSub = (data) => {
  return request.post(api.homeworkSub, data)
}

// 作业详情
export const homeworkDetail = (data) => {
  return request.post(api.homeworkDetail, data)
}

// 提交作业
export const homeworkSubmit = (data) => {
  return request.post(api.homeworkSubmit, data)
}
